class StudentInfo1
{
	private int roll;
	private String name;

   //default constructor
	public StudentInfo1()
	{
		roll=0;
		name="no name";
	}
	public StudentInfo1(int r, String nm)
	{
		roll=r;
		name=nm;
	}

	public void setInfo(int rollNo, String studName)
	{
        roll=rollNo;
		name=studName;
	}
	public void displayInfo()
	{
		System.out.println("Roll = "+roll);
		System.out.println("Name = "+name);
	}
}
